package com.thesis.manage.common.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

/**
 * @author php
 * @date 2017/11/28
 * 存储id自增
 */
@Document(collection = "sequence")
@Data
public class Sequence {
    @Id
    private String id;

    /**
     * 集合名称
     */
    @Field("coll_name")
    private String collName;

    /**
     * 自增序列值
     */
    @Field("seq_id")
    private long seqId;

}
